package com.baidu.basic;

import java.util.List;
import java.util.Map;

import com.baidu.model.SysUser;
import com.jfinal.plugin.activerecord.Page;

public class PageUI extends Page<SysUser>{

	private static final long serialVersionUID = 1L;
	
	private Map<String, Object> pageMap;
	
	public PageUI(List<SysUser> list, int pageNumber, int pageSize,
			int totalPage, int totalRow) {
		super(list, pageNumber, pageSize, totalPage, totalRow);
	}

	public Map<String, Object> getPageMap() {
		pageMap.put("total", this.getTotalRow());
		pageMap.put("rows", this.getList());
		return pageMap;
	}

}
